package com.kaili.basic.mapper;


import com.kaili.basic.pojo.entity.WarehousingReturnProduct;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface WarehousingReturnProductMapper {

    //添加入库退货产品
    int addWarehousingReturnProduct(WarehousingReturnProduct warehousingReturnProduct);

    //删除入库退货产品
    int deleteWarehousingReturnProduct(WarehousingReturnProduct warehousingReturnProduct);

    //删除入库退货产品
    int deleteWarehousingReturnProductList(Map<String, Object> map);

    //修改入库退货产品
    int updateWarehousingReturnProduct(WarehousingReturnProduct warehousingReturnProduct);

    //修改状态（确认或者取消）
    int updateConfirmToCancel(WarehousingReturnProduct warehousingReturnProduct);

    //根据id查询获取入库退货产品
    WarehousingReturnProduct getWarehousingReturnProductById(Long id);

    //根据id查询获取入库退货产品（包括删除的）
    WarehousingReturnProduct getWarehousingReturnProductByIdAll(Long id);

    //根据入库申请表id查询获取入库退货产品集合
    List<WarehousingReturnProduct> getWarehousingReturnProductList(Long returnId);

    //根据入库产品id查询获取入库退货产品
    List<WarehousingReturnProduct> getProductByInProductId(Long inProductId);
}
